﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.CrossCutting.Tools.Logging
{
    public class LoggingServiceContext : DbContext
    {
        public LoggingServiceContext() : base("name=LoggingServiceContext")
        {
            //TODO : Database.Log should be connected on a logger with DI
            this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
        }

        public DbSet<Log> Logs { get; set; }

    }
}
